<template>
	<view id="box">
		<view class="name">你终于来啦</view>
		<view>请先选择你的性别吧</view>
		<view class="select_sex">
			<image @click="select_sex(1)" src="http://wx.jianmeijiayuan.com/static/image/male.png"></image>
			<image @click="select_sex(2)" src="http://wx.jianmeijiayuan.com/static/image/female.png"></image>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				
			}
		},
		methods:{
			select_sex(type=1){
				uni.setStorage({
					key: 'user_sex',
					data: type,
				})
				uni.switchTab({
					url: '/pages/edge/edge'
				})
			}
		}
	}
</script>

<style>
	#box{
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: center;
		font-size: 35rpx;
	}
	#box .name{
		font-size: 40rpx;
		color:#000;
		font-weight: bold;
		margin-top: 120rpx;
		margin-bottom: 30rpx;
	}
	#box .select_sex{
		display: flex;
		justify-content: space-around;
		margin-top: 100rpx;
	}
	#box .select_sex image{
		width: 200rpx;
		height: 200rpx;
	}
</style>
